﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using YXShop.IDAL.SystemInfo;
using YXShop.DALFactory;

namespace YXShop.BLL.SystemInfo
{
    public class ShopStyle
    {
        private readonly IShopStyle dal = DataAccess.CreateShopStyle();
        public int Add(YXShop.Model.SystemInfo.ShopStyle model)
        {
            return dal.Add(model);
        }
        /// <summary>
        /// 更新任意一个字段
        /// </summary>
        /// <param name="id"></param>
        /// <param name="columnName"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        public int Amend(int id, string columnName, object value)
        {
            return dal.Amend(id, columnName, value);
        }
        /// <summary>
        /// 得到一个实体
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public YXShop.Model.SystemInfo.ShopStyle GetModelByID(int id)
        {
            return dal.GetModelByID(id);
        }

        public ChangeHope.DataBase.DataByPage GetList()
        {
            return dal.GetList();
        }

        public List<YXShop.Model.SystemInfo.ShopStyle> GetColList()
        {
            return dal.GetColList();
        }
    }
}
